﻿@model ESupervision.Models.ForumTopic

@{
    ViewBag.Title = "Create";
    Layout = "~/Views/Shared/_Layout.cshtml";
}

<h2>Create</h2>
<style>
    textarea {
        max-width: 60%;
    }
</style>

@using (Html.BeginForm("Create", "ForumTopic"))
{
    @Html.AntiForgeryToken()

    <div class="form-horizontal">
        <h4>ForumTopic</h4>
        <hr />
        @Html.ValidationSummary(true)
        <div class="well bs-component">
            <div class="form-group">
                @Html.LabelFor(model => model.ForumTopicTitle, new { @class = "control-label col-md-2" })
                <div class="col-md-10">
                    @Html.TextAreaFor(model => model.ForumTopicTitle, new { @cols = 200, @rows = 5 })
                    @*@Html.EditorFor(model => model.ForumTopicTitle)*@
                    @Html.ValidationMessageFor(model => model.ForumTopicTitle)
                    @Html.HiddenFor(model => model.ForumTopicPosterID)
                </div>
            </div>

            <div class="form-group">
                @Html.LabelFor(model => model.ForumTopicContent, new { @class = "control-label col-md-2" })
                <div class="col-md-10">
                    @Html.TextAreaFor(model => model.ForumTopicContent, new { @cols = 200, @rows = 10 })
                    @*@Html.EditorFor(model => model.ForumTopicContent)*@
                    @Html.ValidationMessageFor(model => model.ForumTopicContent)
                </div>
            </div>

            @*<div class="form-group">
                @Html.LabelFor(model => model.ForumTopicPostedTime, new { @class = "control-label col-md-2" })
                <div class="col-md-10">
                    @Html.EditorFor(model => model.ForumTopicPostedTime)
                    @Html.ValidationMessageFor(model => model.ForumTopicPostedTime)
                </div>
            </div>*@

            @*<div class="form-group">
                @Html.LabelFor(model => model.ForumTopicPosterID, "ForumTopicPosterID", new { @class = "control-label col-md-2" })
                <div class="col-md-10">
                    @Html.DropDownList("ForumTopicPosterID", String.Empty)
                    @Html.ValidationMessageFor(model => model.ForumTopicPosterID)
                </div>
            </div>*@

            <div class="form-group" >
                <div class="col-md-offset-2 col-md-10">
                    <button type="submit" class="btn btn-warning"><span class="glyphicon glyphicon-plus"> Creat New</span></button>
                    @Html.ActionLink(" Back to List", "Index", "ForumTopic", null, new { @class = "btn btn-success  glyphicon glyphicon-repeat " })
                </div>
            </div>
        </div>
    </div>
}

